package pl.vanta.utils.commons;

public class StringUtils
{
	private StringUtils()
	{
	}

	public static boolean isEmpty(String string)
	{
		return (string == null || "".equals(string));
	}

	public static String complement(String string, char c, int length)
	{
		StringBuilder sb = new StringBuilder(string);

		int times = length - string.length();

		for (int i = 0; i < times; i++)
		{
			sb.insert(0, c);
		}

		return sb.toString();
	}
}